package com.github.chirspan.xaas.rbac.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.HashMap;
import java.util.Map;

/**
 * @author ChenPan
 * @date 2018/6/25 15:42
 * description:
 */
@Configuration
@ConfigurationProperties(prefix = "xaas.security", ignoreUnknownFields = true, ignoreInvalidFields = true)
@Data
public class SecurityProperties {

    private Boolean adminHasAllPermission = true;

    private String roleSuperAdmin = "ROLE_SUPER_ADMIN";

    private String defaultPasswd = "000000";

    /**
     * 请求类资源权限类型
     */
    private String requestResourceType = "2";

    //用户登录后能直接访问的地址
    private Map<String, String> userPermitUrl = new HashMap<>();
}
